package com.ymt.bpm.engine.listener.engine.exception;

/**
 * Created by Johnny on 2016/12/24.
 */
public class EngineException extends Exception {

    private String errorCode;

    public EngineException(String errorCode, String message, Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public EngineException(String errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

}
